﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassProject.Entity;
using Microsoft.ApplicationBlocks.Data;

namespace ClassProject.DAL
{
    class SupportDetailsDAL:ADONET
    {
        SupportDetailsEn supportDetailsEntity= new SupportDetailsEn();
        
        public SupportDetailsDAL()
        {
            
        }

        #region Insert data table SupportDetails
        public int Insert()
        {
<<<<<<< .mine
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_SupportDetails_Insert", supportDetailsEntity.SupportID, supportDetailsEntity.AdminID, supportDetailsEntity.Last_Insert);
=======
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Insert_SupportDetails", supportDetailsEntity.InfoID, supportDetailsEntity.AdminID, supportDetailsEntity.Last_Insert);
>>>>>>> .r37
            return i;
        }
        #endregion

        #region Update data table SupportDetails
        public int Update()
        {
<<<<<<< .mine
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_SupportDetails_Update", supportDetailsEntity.Admin_Update, supportDetailsEntity.Last_Update, supportDetailsEntity.SupportID);
=======
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Update_SupportDetails", supportDetailsEntity.Admin_Update, supportDetailsEntity.Last_Update, supportDetailsEntity.InfoID);
>>>>>>> .r37
            return i;
        }
        #endregion

        #region Delete data table SupportDetails
        public int Delete()
        {
<<<<<<< .mine
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_SupportDetails_Delete", supportDetailsEntity.Admin_Delete, supportDetailsEntity.Last_Delete, supportDetailsEntity.SupportID);
=======
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Delete_SupportDetails", supportDetailsEntity.Admin_Delete, supportDetailsEntity.Last_Delete, supportDetailsEntity.InfoID);
>>>>>>> .r37
            return i;
        }
        #endregion
    }
}
